const db = require('./db.js');

exports.beforeAll = (req, res, next) => {
	const { route: { path }, query, body } = req;
	console.log('---');
	console.log(Date());
	console.log(`path => ${JSON.stringify(path)}`);
	console.log(`query => ${JSON.stringify(query)}`);
	console.log(`body => ${JSON.stringify(body)}`);
	console.log('---');
	next();
}

exports.getTest = (req, res) => {
	res.send('Hello get test');
}